<h2>Add New Ad</h2>

<br/>

<?php echo form_open_multipart('admin/addNewAd');?>
<table>
	<tr>
		<td>Title</td>
		<td><input type="text" name="title" value=""/></td>
	</tr>
	<tr>
		<td>Href</td>
		<td><input type="text" name="href" value="" size="20"/></td>			
	</tr>
	<tr>
		<td>Image</td>
		<td><input type="file" name="image" size="20" /></td>
	</tr>
	<tr>
		<td>Order</td>
		<td><input type="order" name="order" value=""/></td>
	</tr>
	<tr>
		<td>Position</td>
		<td>
			<select name="position_id">
				<?php
					foreach ($positions as $position) {
						echo '<option value="'.$position['id'].'">'.$position['name'].'</option>';
					}
				?>					
			</select>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" name="submitBtn" value="Submit" />
			<input type="reset" name="reset" value="Reset" />
		</td>
	</tr>
</table>
</form>